package rest.services;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import rest.entities.User;

@Path("/hello")
public class TestServerResource {

	@GET
	@Produces(MediaType.TEXT_PLAIN)
	public String getHello() {
		return "Hello Rest!!!";
	}

	@GET
	@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
	public User getUser() {
		User user = new User();
		user.setEmail("email");
		user.setUsername("user");
		user.setPassword("pass");
		return user;
	}

}
